-- GENERATED SPELL FOR [Kobold Miner] --


function spell0_40(pUnit, Event) --@Pierce Armor,n/a--
pUnit:FullCastSpellOnTarget(6016,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_40', 20000, 1)
end

function Sorts_40(pUnit, Event)
local choix_sorts_40 = math.random(0, 0)
if choix_sorts_40 == 0 then
pUnit:RegisterEvent('spell0_40', 1, 1)
end
end

function mob40_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_40', math.random(1500, 3000), 1)
end

function mob40_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob40_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob40_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(40, 1, 'mob40_Action')
RegisterUnitEvent(40, 2, 'mob40_Leave')
RegisterUnitEvent(40, 3, 'mob40_Kill')
RegisterUnitEvent(40, 4, 'mob40_Die')
